<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>菜单栏</title>
		
		<link rel="stylesheet" href="../css/buttons.css" />
	</head>
	
	<body style="background-color: #323232;">
		<div class="button-group">
		    <a href="javascript: void(0)" class="button button-pill button-tiny" onclick="parent.EDITOR.save()">保存(S)</a>
		    <a href="javascript: void(0)" class="button button-pill button-tiny" onclick="parent.EDITOR.compare()">对比(D)</a>
		    <a href="javascript: void(0)" class="button button-pill button-tiny" onclick="parent.EDITOR.read()">读取(R)</a>
		    <a href="javascript: void(0)" class="button button-pill button-tiny" onclick="parent.EDITOR.setting()">设置(T)</a>
		    <a href="javascript: void(0)" class="button button-pill button-tiny">帮助(H)</a>
		    <a href="javascript: void(0)" class="button button-pill button-tiny" onclick="parent.EDITOR.about()">关于(A)</a>
		</div>
	</body>
	
	<script type="text/javascript" src="../js/jquery-1.11.0.min.js"></script>
	
	<script type="text/javascript" src="../js/main/zfsn-editor.js"></script>
	
	<script>
		var fullFlag = false;
		
		function toggleFullScreen() {
			if (fullFlag) {
				exitScreen();
			} else {
				fullCodingScreen();
			}
		}
		
		// 全屏
		function fullCodingScreen() {
			parent.document.getElementById('frameId1').rows = '0%, *';
			parent.document.getElementById('frameId2').cols = '0%, *';
			fullFlag = true;
			
			var el = parent.document.documentElement;
            var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullscreen;      
            if(typeof rfs != "undefined" && rfs) {
                rfs.call(el);
            };
		}
		
		// 退出全屏
        function exitScreen() {
            parent.document.getElementById('frameId1').rows = '4%, *';
			parent.document.getElementById('frameId2').cols = '15%, *';
			fullFlag = false;
			
            if (parent.document.exitFullscreen) {
                parent.document.exitFullscreen();
            }
            else if (parent.document.mozCancelFullScreen) {
                parent.document.mozCancelFullScreen();
            }
            else if (parent.document.webkitCancelFullScreen) {
                parent.document.webkitCancelFullScreen();
            }
            else if (parent.document.msExitFullscreen) {
                parent.document.msExitFullscreen();
            }
            if(typeof cfs != "undefined" && cfs) {
                cfs.call(el);
            }
        }
		
		// ie低版本的全屏，退出全屏都这个方法
        /*function iefull(){
            var el = document.documentElement;
            var rfs =  el.msRequestFullScreen;
            if(typeof window.ActiveXObject != "undefined") {
                //这的方法 模拟f11键，使浏览器全屏
                var wscript = new ActiveXObject("WScript.Shell");
                if(wscript != null) {
                    wscript.SendKeys("{F11}");
                }
            }
        }*/
	</script>
	
</html>
